<!-- <!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>2</title>
</head>

<body>
    <h1>我是登陆网页</h1>
    <form name="input" action="html_form_action.php" method="get">
        用户名: <input type="text" name="user">
        <input type="submit" value="提交">
    </form>
    <a href="/1.html">点我到内容页面</a>
    <img src="/image/2.jpg" alt="test">
</body>

</html> -->

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>表单</title>
</head>

<body>
    <!-- 只需要在method方法上修改get/post方法即可 -->
    <form action="/login" method="post"> 
        用户名: <input type="text" name="user"><br>
        密码: <input type="password" name="password"><br>
        <input type="submit" value="提交">
    </form>
</body>

</html>